Restart

Restarts the EtherCAT master.

Syntax

KsCommandStatus Restart();

Return value

Returns the KsCommandStatus structure.

Remarks

Usable EtherCAT states

ecatOP

Example

Copy
double autoStart = 0.0;
nRet = GetFeatureStatus(KsFeature::featureAutoRestart, &autoStart);
if (autoStart != 1.0)
{
    WaitForCommand(30, TRUE, Restart());
}

Requirements

  RT Win32
Minimum supported version 4.0 4.0
Header ksapi.h ksapi.h
Library KsApi_Rtss.lib KsApi.lib

See also

Create

Destroy

Start

Stop